import os
os.environ['DJANGO_SETTINGS_MODULE'] = "settings.settings"
from django.conf import settings
from django.core.cache import cache
cache.set("foo", "value", timeout=25)
print cache.get("foo")
